From e8a676fe6179e3d0de36c68943aa9bafe6a03900 Mon Sep 17 00:00:00 2001 From: Elliott Mitchell Date: Thu, 16 Jul 2020 23:37:42 -0700 Subject: [PATCH] d/shuffle-binaries: Make error detection/message overt The reason for the `ls` at the end is pretty straightforward if you think about it, mainly confirming the shuffle step did something. Yet that is a bit non-obvious, and the error message produced on failure is poor ("No such file or directory" simply means the script failed somewhere?). Add an overt error message. Signed-off-by: Elliott Mitchell Acked-by: Hans van Kranenburg --- debian/shuffle-binaries | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/debian/shuffle-binaries b/debian/shuffle-binaries index cff6de5428..31aa01e2bd 100755 --- a/debian/shuffle-binaries +++ b/debian/shuffle-binaries @@ -47,4 +47,7 @@ for binary in `find $t/usr/{bin,sbin} -type f`; do ) done -ls debian/shuffle-binaries.stamp +if [ ! -e "$0.stamp" ]; then + echo "Failed to shuffle binaries!" 1>&2 + exit 1 +fi -- 2.30.2